<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
</head>
<body>

    <label for="info">输入信息</label> <input type="text" id="info">
    <button id="btn1">触发js(base64)</button>
    <button id="btn2">触发js(自定义函数转大写)</button>
    <button id="btn3">触发js(自定义函数将输入的内容打乱)</button>
    <button id="btn4">触发js(自定义函数将混淆)</button>
    <button id="btn5">触发js(补环境)</button>
    <button id="btn6">触发js(加密)</button>

<script >

    let btn1 = document.querySelector("#btn1");
    let info = document.querySelector("#info");


    btn1.onclick = function (){
         // console.log("hello world")
        let info_base64 = window.btoa(info.value);
        axios.get('https://httpbin.org/get',{
            params:{
                ID:12345,
                info: info_base64
            }
        })
              .then(function (response) {
                // 处理成功情况
                console.log(response);
              })
              .catch(function (error) {
                // 处理错误情况
                console.log(error);
              })

    }




    let btn2 = document.querySelector("#btn2");

    btn2.onclick = function (){
         // console.log("hello world")
        let info_upper = info.value.toUpperCase();
        axios.get('https://httpbin.org/get',{
            params:{
                ID:12345,
                info: info_upper
            }
        })
              .then(function (response) {
                // 处理成功情况
                console.log(response);
              })
              .catch(function (error) {
                // 处理错误情况
                console.log(error);
              })

    }




    function do_str(str){
                // 将字符串转换为数组
            const arr = str.split('');

            // Fisher-Yates 洗牌算法
            for (let i = arr.length - 1; i > 0; i--) {
                const j = Math.floor(Math.random() * (i + 1));
                // 交换元素
                [arr[i], arr[j]] = [arr[j], arr[i]];
            }

            // 将数组转换回字符串
            return arr.join('');
        }

        let btn3 = document.querySelector("#btn3");

        btn3.onclick = function () {
            // console.log("hello world")
            let info_daluan = do_str(info.value);
            axios.get('https://httpbin.org/get', {
                params: {
                    ID: 12345,
                    info: info_daluan
                }
            })
                .then(function (response) {
                    // 处理成功情况
                    console.log(response);
                })
                .catch(function (error) {
                    // 处理错误情况
                    console.log(error);
                })

                 };


            // function hi(name) {
            //     // console.log("Hello World!");
            //     return "helloword" + name;
            // }

        function _0x1b11(_0x2a3e25,_0x574d89){var _0x15ddf9=_0x15dd();return _0x1b11=function(_0x1b113b,_0x4498be){_0x1b113b=_0x1b113b-0x1a8;var _0x2cc09f=_0x15ddf9[_0x1b113b];return _0x2cc09f;},_0x1b11(_0x2a3e25,_0x574d89);}function _0x15dd(){var _0x2b0818=['9stYesL','2822805OBhZIN','222087pAWKYc','1181144OLkMOo','9mNrJDd','1107804ksWBsF','96788zKnUkB','14644mMxeMn','3883FKsATf','996tJRBdG','24200FqkFgH'];_0x15dd=function(){return _0x2b0818;};return _0x15dd();}(function(_0x57dd5e,_0x351a4b){var _0x584828=_0x1b11,_0x20d7b2=_0x57dd5e();while(!![]){try{var _0x304ca5=-parseInt(_0x584828(0x1a9))/0x1+parseInt(_0x584828(0x1ac))/0x2+parseInt(_0x584828(0x1b2))/0x3*(parseInt(_0x584828(0x1ad))/0x4)+parseInt(_0x584828(0x1a8))/0x5+-parseInt(_0x584828(0x1b0))/0x6*(-parseInt(_0x584828(0x1ae))/0x7)+parseInt(_0x584828(0x1aa))/0x8*(-parseInt(_0x584828(0x1ab))/0x9)+parseInt(_0x584828(0x1b1))/0xa*(-parseInt(_0x584828(0x1af))/0xb);if(_0x304ca5===_0x351a4b)break;else _0x20d7b2['push'](_0x20d7b2['shift']());}catch(_0x3d6ce6){_0x20d7b2['push'](_0x20d7b2['shift']());}}}(_0x15dd,0x4cbe0));function hi(_0x1407aa){return'helloword'+_0x1407aa;}


        let btn4 = document.querySelector("#btn4");

        btn4.onclick = function () {
            // console.log("hello world")
            let info_daluan = hi(info.value);
            console.log(info_daluan)
            axios.get('https://httpbin.org/get', {
                params: {
                    ID: 12345,
                    info: info_daluan
                }
            })
                .then(function (response) {
                    // 处理成功情况
                    console.log(response);
                })
                .catch(function (error) {
                    // 处理错误情况
                    console.log(error);
                })
        }


        // function userAgent_btoa(name) {
        //         return window.navigator.userAgent + btoa("name");
        //     }

        function _0x5ae7(_0x3e808a,_0x42456c){var _0x53e430=_0x53e4();return _0x5ae7=function(_0x5ae7e8,_0x4a9916){_0x5ae7e8=_0x5ae7e8-0x14a;var _0x10e705=_0x53e430[_0x5ae7e8];return _0x10e705;},_0x5ae7(_0x3e808a,_0x42456c);}function _0x53e4(){var _0x3d2ea5=['33xzUkXV','232AIVtEC','6924280oQBQGC','navigator','521272FXnRIN','1015715DufioH','1330464vOvRNL','280567chMfYB','userAgent','name','30dekDHH','35556MyPBAR','10558692pBpUab','81RhvtKL'];_0x53e4=function(){return _0x3d2ea5;};return _0x53e4();}(function(_0x4959b2,_0x4986f5){var _0x547eb6=_0x5ae7,_0x3a2da0=_0x4959b2();while(!![]){try{var _0x1a74a7=-parseInt(_0x547eb6(0x14f))/0x1+parseInt(_0x547eb6(0x151))/0x2+-parseInt(_0x547eb6(0x14a))/0x3*(parseInt(_0x547eb6(0x156))/0x4)+-parseInt(_0x547eb6(0x150))/0x5*(-parseInt(_0x547eb6(0x155))/0x6)+parseInt(_0x547eb6(0x152))/0x7*(-parseInt(_0x547eb6(0x14c))/0x8)+-parseInt(_0x547eb6(0x157))/0x9+parseInt(_0x547eb6(0x14d))/0xa*(parseInt(_0x547eb6(0x14b))/0xb);if(_0x1a74a7===_0x4986f5)break;else _0x3a2da0['push'](_0x3a2da0['shift']());}catch(_0x2d220c){_0x3a2da0['push'](_0x3a2da0['shift']());}}}(_0x53e4,0xa17ab));function userAgent_btoa(_0x1a3a4f){var _0xb62ab1=_0x5ae7;return window[_0xb62ab1(0x14e)][_0xb62ab1(0x153)]+btoa(_0xb62ab1(0x154));}

    let btn5 = document.querySelector("#btn5");
        btn5.onclick = function () {
            // console.log("hello world")
            let info_daluan = userAgent_btoa(info.value);
            console.log(info_daluan)
            axios.get('https://httpbin.org/get', {
                params: {
                    ID: 12345,
                    info: info_daluan
                }
            })
                .then(function (response) {
                    // 处理成功情况
                    console.log(response);
                })
                .catch(function (error) {
                    // 处理错误情况
                    console.log(error);
                })
        }


        // 补ua与cookie

        // function _0x2b77(_0x20e79e,_0x841523){const _0x3fdbbd=_0x3fdb();return _0x2b77=function(_0x2b7727,_0x3f599a){_0x2b7727=_0x2b7727-0x168;let _0x3a78b4=_0x3fdbbd[_0x2b7727];return _0x3a78b4;},_0x2b77(_0x20e79e,_0x841523);}(function(_0x2f8ec6,_0x1b2d56){const _0x1bf6c6=_0x2b77,_0x3090d0=_0x2f8ec6();while(!![]){try{const _0x42899b=-parseInt(_0x1bf6c6(0x174))/0x1*(-parseInt(_0x1bf6c6(0x176))/0x2)+parseInt(_0x1bf6c6(0x169))/0x3*(parseInt(_0x1bf6c6(0x16f))/0x4)+parseInt(_0x1bf6c6(0x16d))/0x5*(parseInt(_0x1bf6c6(0x16b))/0x6)+parseInt(_0x1bf6c6(0x16c))/0x7*(-parseInt(_0x1bf6c6(0x177))/0x8)+-parseInt(_0x1bf6c6(0x16e))/0x9*(parseInt(_0x1bf6c6(0x168))/0xa)+parseInt(_0x1bf6c6(0x16a))/0xb+-parseInt(_0x1bf6c6(0x170))/0xc*(-parseInt(_0x1bf6c6(0x171))/0xd);if(_0x42899b===_0x1b2d56)break;else _0x3090d0['push'](_0x3090d0['shift']());}catch(_0x10636c){_0x3090d0['push'](_0x3090d0['shift']());}}}(_0x3fdb,0x6bcad));function userAgent_cookie(_0x4e1ae1){const _0x37573d=_0x2b77;let _0x2b47bf=window[_0x37573d(0x173)][_0x37573d(0x175)]+_0x4e1ae1+window['document'][_0x37573d(0x172)];return _0x2b47bf;}function _0x3fdb(){const _0x17b05d=['9919TRgJAc','cookie','navigator','2029rzQGAC','userAgent','790IMHPby','129448GfFRWd','7930330rRtYXJ','1110393kKidwn','361999KQSLfh','222RGsjOn','210vpsNWY','51410QILeBc','9RrBSJD','4rANMTR','2124QVuseb'];_0x3fdb=function(){return _0x17b05d;};return _0x3fdb();}
        //
        // let btn4 = document.querySelector("#btn4");
        //  btn4.onclick = function (){
        //     // console.log("hello world")
        //     let info_str = userAgent_cookie(info.value);
        //
        //     axios.get('https://httpbin.org/get', {
        //         params: {
        //           ID: 12345,
        //             info: info_str
        //         }
        //       })
        //       .then(function (response) {
        //         console.log(response);
        //       })
        //       .catch(function (error) {
        //         console.log(error);
        //       })
        //
        // }


    let key = "secret key 123"

    function encrypt(s){
            var jm = CryptoJS.AES.encrypt(s, key).toString();
            return jm
    }


    let btn6 = document.querySelector("#btn6");
    btn6.onclick = function () {
            // console.log("hello world")
            let info_daluan = encrypt(info.value);
            axios.get('https://httpbin.org/get', {
                params: {
                    ID: 12345,
                    info: info_daluan
                }
            })
                .then(function (response) {
                    // 处理成功情况
                    console.log(response);
                })
                .catch(function (error) {
                    // 处理错误情况
                    console.log(error);
                })
        }

</script>



</body>
</html>